package com.xue.bean;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Order implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String orderId;//订单ID
	
	private String productId;//产品ID
	
	private String validStsCd;//有效状态
	
	private Date crtTime;//订单时间
	
	private String userId;//用户ID

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String productId) {
		this.productId = productId;
	}

	public String getValidStsCd() {
		return validStsCd;
	}

	public void setValidStsCd(String validStsCd) {
		this.validStsCd = validStsCd;
	}

	public Date getCrtTime() {
		return crtTime;
	}

	public void setCrtTime(Date crtTime) {
		this.crtTime = crtTime;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	public String toString() {		
		StringBuilder str = new StringBuilder();
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		String ct = sdf.format(crtTime);
		str.append("Order [orderId = ").append(orderId)
		.append(" , productId = ").append(productId)
		.append(" , userId = ").append(userId)
		.append(" , crtTime = ").append(ct)
		.append(" , validStsCd = ").append(validStsCd)
		.append("]");		
		return str.toString();
	}
}
